home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19981211-19990422 / 000200_news@watsun.cc.columbia.edu _Tue Feb 9 15:23:40 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@watsun.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id PAA23606
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 9 Feb 1999 15:23:39 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id PAA23236
  7.     for kermit.misc@watsun.cc.columbia.edu; Tue, 9 Feb 1999 15:06:21 -0500 (EST)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: "Gregory I. Hayes" <gihayes@bellsouth.net>
  10. Subject: Need Help Using Kermit as a non-root user
  11. Date: Tue, 9 Feb 1999 13:52:00 -0600
  12. Organization: AccessCom, THE New Orleans Internet Provider
  13. Message-ID: <79q2oq$1m0$1@ux2.accesscom.net>
  14. To: kermit.misc@mailrelay2.cc.columbia.edu
  15.  
  16. I am using aix 4.1.5.0. and C-Kermit  6.0.192. I have a C-Kermit script
  17. called /usr/local/call-medb that dials out and transfers data to a remote
  18. location and then recieves a response file. When it is run by root, it works
  19. fine. The device that is being used for dial out is /dev/tty2. The problem I
  20. am having is that tty2 is owned and in the group uucp. Whenever I try to run
  21. the script with this setting not as root, I get the following error:
  22.  
  23. Command file: /usr/local/call-medb, line 7
  24. /dev/tty2: Permission denied
  25. Sorry, access to device denied: /dev/tty2
  26. ?Sorry, you must SET LINE first
  27. Sorry, you must SET LINE or SET HOST first
  28.  
  29. I tried setting  the suid bit for the script and set the owner as root
  30. hoping this would give the script permission to do anything but it still
  31. gives the error. If I manually change the owner of tty2 to root and its
  32. group to system, It works fine ...but... the next time I run the script, the
  33. owner and group have been changed back to uucp. Nothing is using the line
  34. between dial outs. It is sometime used as a dial-in line, but this is rare.
  35. I have tried manually setting tty2 to crw-rw-rw. And this works...but ...
  36. when the script is finished it is changed to crw-rw--w- and the scrip fails
  37. when it is run. I have attempted to change the condition of tty2 via a unix
  38. chmod or chown or chgrp from kermit, but I get an error stating that this is
  39. not allowed. I've tried everything I know of Any one outthere have any idea
  40. why tty2 is being changed or how I can let a non root user run it ? The
  41. script is below:
  42.  
  43. #!/usr/local/bin/kermit
  44. #run chmod a+rw /dev/tty2
  45. cd /lin1/usr/ebill/mc
  46. log trans meb.transactions append
  47. set session log text
  48. set flow xon/xoff
  49. set modem type multitech
  50. set modem maximum-speed 19200
  51. set modem dial-command ATDT%s\{13}
  52. set line /dev/tty2
  53. set speed 19200
  54. set dial retries 100
  55. set dial interval 10
  56. set terminal autodownload on
  57. # NOTE - Unix Kermit expects files to be terminated in LF only
  58. # our files are terminated in CRLF, hence the following line
  59. # [HERBR] 12-23-98
  60. set file type text
  61. #set file end-of-line lf
  62. log session medb.session append
  63. delete response.emc
  64. dial 9,12252312251
  65. input 360 Quit
  66. output 4\13
  67. input 5 ...
  68. #send /lin1/usr/ebill/mc/medpartb
  69. send medpartb
  70. input 360 (Y/N)
  71. output Y
  72. #receive /lin1/usr/ebill/mc/response.emc
  73. receive response.emc
  74. hangup
  75. set line
  76. run /usr/local/reset.tty2
  77. exit
  78.  
  79. Gregory I. Hayes
  80. gihayes@bellsouth.net
  81.